import request from "@/utils/request";
/**
 * @description 古庙
 * @param
 * @returns
 */
// 获取列表
export async function getListApi(data: any) {
  return request({
    url: "/api/temples/list",
    method: "get",
    params: data,
  });
}

//详情
export async function getDetailApi(id: number) {
  return request({
    url: "/api/temples/detail/" + id,
    method: "get",
  });
}

//更新状态
export async function updateApi(data: any) {
  return request({
    url: "/api/temples/update",
    method: "post",
    data: data,
  });
}

//删除
export async function deleteApi(id: number) {
  return request({
    url: "/api/temples/delete/" + id,
    method: "delete",
  });
}

//积分奖励
export async function rewardApi(data: any) {
  return request({
    url: "/api/temples/givePoints",
    method: "post",
    data: data,
  });
}
